package com.hxkj.dao.impl;


import com.hxkj.dao.CommonWithdrawDao;
import com.hxkj.domain.po.CommonWithdraw;
import com.hxkj.mapper.CommonWithdrawMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
* 提现订单表数据操作实现
*
* @author: yangjianguo
* @version: 1.0
* @datetime: 2019-01-15 14:30:54
*
*/
@Service("commonWithdrawDao")
public class CommonWithdrawDaoImpl implements CommonWithdrawDao {

    @Resource
    private CommonWithdrawMapper commonWithdrawMapper;

    @Override
    public CommonWithdraw get(String id) {
        return commonWithdrawMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CommonWithdraw> get(CommonWithdraw commonWithdraw) {
        return commonWithdrawMapper.select(commonWithdraw);
    }

    @Override
    public int delete(String id) {
        return commonWithdrawMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int save(CommonWithdraw commonWithdraw) {
        return commonWithdrawMapper.insert(commonWithdraw);
    }

    @Override
    public int update(CommonWithdraw commonWithdraw) {
        return commonWithdrawMapper.update(commonWithdraw);
    }
}
